package com.myproject.myblogserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 收藏夹表
 * </p>
 *
 * @author jiangweike
 * @since 2025-02-25
 */
@Getter
@Setter
@TableName("favorite_folder")
@ApiModel(value = "FavoriteFolder对象", description = "收藏夹表")
public class FavoriteFolder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID（关联user.id）")
    private Long userId;

    @ApiModelProperty("收藏夹名称")
    private String name;

    @ApiModelProperty("收藏夹描述")
    private String description;

    @ApiModelProperty("是否公开 (0:私有, 1:公开)")
    private Boolean isPublic;

    @ApiModelProperty("逻辑删除标志 (0:未删除, 1:已删除)")
    private Boolean isDeleted;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty("更新时间")
    private LocalDateTime updatedAt;
}
